import request from '@/utils/request'
// 获取树状图根节点信息
export const getgenjiedianapi = params => request.get(`/core/vom/device-tree/root-node/list?treeModel=${params.treeModel}`)
// 获取树状图子节点信息
export const getzijidianapi = data => request.post('/core/vom/device-tree/child-node/list', data)
// 获取设备列表
export const gettreedevicelistapi = params => request.get('ecm-microservice-biz/ecm/equip/gate/set/equipList', { params })
// 绑定
export const postbangdingapi = data => request.post('ecm-microservice-biz/ecm/equip/gate/set/bind', data)
// 获取已配置了的能源类型字典列表
export const getnengyuantypeapi=()=>request.get('ecm-microservice-biz/ecm/equip/gate/set/configuredEnergyTypeList')